import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';
import { MyPage } from '../tabs/my/my'
import { OrderRootPage } from '../tabs/order/root'
import { FactoryPage } from '../tabs/factory/factory'
import { AuthService } from '../../providers/auth-service';


@Component({
  selector: 'page-home',
  templateUrl: 'home.html'
})
export class HomePage {
  tabOrder = OrderRootPage 
  tabMy = MyPage
  tabFactory = FactoryPage
  factoryName = ''
  constructor(
      public navCtrl: NavController, 
      private auth: AuthService,
    ) {
    this.factoryName = auth.getUserInfo().factory.type === 1 ? '服装厂': '加工厂'
  }
}
